﻿<UserControl x:Class="XamlaApp.Views.ElementPropertyViews.FrameworkElementProperties"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:form="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit">
        <StackPanel>
            <form:DataForm CurrentItem="{Binding}">
                <form:DataForm.EditTemplate>
                    <DataTemplate>
                        <StackPanel>
                            <form:DataField Label="Name">
                                <TextBox Text="{Binding ControlName, Mode=TwoWay}"></TextBox>
                            </form:DataField>
                        </StackPanel>
                    </DataTemplate>
                </form:DataForm.EditTemplate>
            </form:DataForm>
            <form:DataForm CurrentItem="{Binding}">
                <form:DataForm.HeaderTemplate>
                    <DataTemplate>
                        <TextBlock Text="Layout"></TextBlock>
                    </DataTemplate>
                </form:DataForm.HeaderTemplate>
                <form:DataForm.EditTemplate>
                    <DataTemplate>
                        <StackPanel>
                            <form:DataField Label="Top">
                                <StackPanel Orientation="Horizontal">
                                    <Slider Style="{StaticResource xamla_propertymenu_slider}" Minimum="0" Maximum="800" Value="{Binding Top, Mode=TwoWay}"></Slider>
                                    <TextBox Style="{StaticResource xamla_propertymenu_numerictextbox}" Text="{Binding Top, Mode=TwoWay}" ></TextBox>
                                </StackPanel>
                            </form:DataField>
                            <form:DataField Label="Left">
                                <StackPanel Orientation="Horizontal">
                                    <Slider Style="{StaticResource xamla_propertymenu_slider}" Minimum="0" Maximum="800" Value="{Binding Left, Mode=TwoWay}"></Slider>
                                    <TextBox Style="{StaticResource xamla_propertymenu_numerictextbox}"  Text="{Binding Left, Mode=TwoWay}" ></TextBox>
                                </StackPanel>
                            </form:DataField>
                            <form:DataField Label="Width">
                                <StackPanel Orientation="Horizontal">
                                    <Slider Style="{StaticResource xamla_propertymenu_slider}" Minimum="{Binding MinElementWidth}" Maximum="800" Value="{Binding Width, Mode=TwoWay}"></Slider>
                                    <TextBox Style="{StaticResource xamla_propertymenu_numerictextbox}"  Text="{Binding Width, Mode=TwoWay}" ></TextBox>
                                </StackPanel>
                            </form:DataField>
                            <form:DataField Label="Height">
                                <StackPanel Orientation="Horizontal">
                                    <Slider Style="{StaticResource xamla_propertymenu_slider}" Minimum="{Binding MinElementHeight}" Maximum="800" Value="{Binding Height, Mode=TwoWay}"></Slider>
                                    <TextBox Style="{StaticResource xamla_propertymenu_numerictextbox}" Text="{Binding Height, Mode=TwoWay}" ></TextBox>
                                </StackPanel>
                            </form:DataField>
                            <form:DataField Label="Opacity">
                                <StackPanel Orientation="Horizontal">
                                    <Slider  Style="{StaticResource xamla_propertymenu_slider}" Minimum="0" Maximum="1" Value="{Binding Opacity, Mode=TwoWay}"></Slider>
                                    <TextBox Style="{StaticResource xamla_propertymenu_numerictextbox}"  Text="{Binding Opacity, Mode=TwoWay}" ></TextBox>
                                </StackPanel>
                            </form:DataField>
                            <form:DataField Label="Rotation">
                                <StackPanel Orientation="Horizontal">
                                    <Slider  Style="{StaticResource xamla_propertymenu_slider}" Minimum="-180" Maximum="180" Value="{Binding RotationZAmount, Mode=TwoWay}"></Slider>
                                    <TextBox Style="{StaticResource xamla_propertymenu_numerictextbox}"  Text="{Binding RotationZAmount, Mode=TwoWay}" ></TextBox>
                                </StackPanel>
                            </form:DataField>
                            <form:DataField Label="Tilt">
                                <StackPanel Orientation="Horizontal">
                                    <Slider  Style="{StaticResource xamla_propertymenu_slider}" Minimum="-180" Maximum="180" Value="{Binding RotationXAmount, Mode=TwoWay}"></Slider>
                                    <TextBox Style="{StaticResource xamla_propertymenu_numerictextbox}"  Text="{Binding RotationXAmount, Mode=TwoWay}" ></TextBox>
                                </StackPanel>
                            </form:DataField>
                            <form:DataField Label="Swing">
                                <StackPanel Orientation="Horizontal">
                                    <Slider  Style="{StaticResource xamla_propertymenu_slider}" Minimum="-180" Maximum="180" Value="{Binding RotationYAmount, Mode=TwoWay}"></Slider>
                                    <TextBox Style="{StaticResource xamla_propertymenu_numerictextbox}"  Text="{Binding RotationYAmount, Mode=TwoWay}" ></TextBox>
                                </StackPanel>
                            </form:DataField>
                            <form:DataField Label="Ordering">
                                <StackPanel>
                                    <Button Click="Button_Click" Content="Bring Forward" x:Name="btnBringForward"/>
                                    <Button Click="Button_Click" Content="Send Backward" x:Name="btnSendBackward"/>
                                    <Button Click="Button_Click" Content="Bring To Front" x:Name="btnBringToFront"/>
                                    <Button Click="Button_Click" Content="Send To Back" x:Name="btnSendToBack"/>
                                </StackPanel>
                            </form:DataField>
                        </StackPanel>
                </DataTemplate>
                </form:DataForm.EditTemplate>
            </form:DataForm>
        </StackPanel>
</UserControl>
